package org.suyisen.feng.gateway.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 
 */
@ConfigurationProperties(prefix = "gateway.routes.config")
@Component
public class GatewayRouteConfigProperties {
	
	
    private String dataId;
    
    private String group;
  
    private String namespace;

	public String getDataId() {
		return dataId;
	}

	@Value("${nacos.gateway.route.config.data-id}")
	public void setDataId(String dataId) {
		this.dataId = dataId;
	}

	public String getGroup() {
		return group;
	}

	@Value("${nacos.gateway.route.config.group}")
	public void setGroup(String group) {
		this.group = group;
	}

	public String getNamespace() {
		return namespace;
	}

	@Value("${spring.cloud.nacos.discovery.namespace}")
	public void setNamespace(String namespace) {
		this.namespace = namespace;
	}
    
    

}
